<div class="sidebar">
    <?php $cateRec = HResponse::getAttribute('cate_record'); ?>
    <div class="sidebar_Title"><?php echo $cateRec['name']; ?></div>
    <div class="sidebarDivider"></div>
    <?php if (I('parent_id')) { ?>
    <div class="s_column">
        <?php $sonList = HResponse::getAttribute('sonlist'); ?>
        <?php foreach($sonList as $item) { ?>
        <a href="javascript:void(0);" data-id="<?php echo $item['id']; ?>" class="cate lm-item clearance">
            <?php echo $item['name']; ?>
        </a>
        <?php } ?>
    </div>
    <?php } ?>
    <div class="sidebar_Title sidebar_Collapse">Color<div class="sid_icon"></div></div>
    <div class="Collapse_ma">
        <?php $colorList = HResponse::getAttribute('color_list'); ?>
        <?php foreach($colorList as $key => $item){ ?>
        <div class="ColorBox"><input type="checkbox" id="che<?php echo $key + 1; ?>" />
            <?php if ($item['content']) { ?>
            <label data-name="<?php echo $item['name']; ?>"  data-id="<?php echo $item['id']; ?>" class="colorCircle" style="background:#<?php echo $item['content']; ?>"></label>
            <?php } else { ?>
            <label data-name="<?php echo $item['name']; ?>" data-id="<?php echo $item['id']; ?>" class="colorCircle" style="background:url(<?php echo HResponse::touri($item['image_path']); ?>) center center; background-size: 100% 100%;"></label>
            <?php } ?>
            <div class="ColorBox_tlor"><?php echo $item['name']; ?><div class="tooltip-arrow"></div></div></div>
        <?php } ?>
        <div class="clear"></div>
    </div>
    <div class="sidebarDivider sidebarDivider_Coll"></div>
    <div class="sidebar_Title sidebar_Collapse">Shape<div class="sid_icon"></div></div>
    <div class="filters_ma">
        <?php $shapeList = HResponse::getAttribute('shape_list'); ?>
        <?php foreach($shapeList as $key => $item){ ?>
        <div class="filtersDefault <?php if(in_array($item['id'], explode(',', I('shape')))) { ?>filt_on<?php } ?>">
            <input type="checkbox" id="khe<?php echo $key + 1; ?>" class="shape-checkbox" value="<?php echo $item['id']; ?>"
            <?php if(in_array($item['id'], explode(',', I('shape')))) { ?>checked<?php } ?>/>
            <div class="fram_img fram_<?php echo $key + 1; ?>" style="background: url(<?php echo HResponse::touri($item['image_path']); ?>) no-repeat center center"></div>
            <label for="khe<?php echo $key + 1; ?>"><?php echo $item['name']; ?></label><span>(<?php echo $item['content']; ?>)</span>
        </div>
        <?php } ?>
    </div>
    <div class="sidebarDivider sidebarDivider_Coll"></div>
    <div class="sidebar_Title sidebar_Collapse">Rim<div class="sid_icon"></div></div>
    <div class="filters_ma">
        <?php $rimList = HResponse::getAttribute('rim_list'); ?>
        <?php foreach($rimList as $key => $item){ ?>
        <div class="filtersDefault <?php if(in_array($item['id'], explode(',', I('rim')))) { ?>filt_on<?php } ?>">
            <input type="checkbox" id="fhe<?php echo $key + 1; ?>" class="rim-checkbox" value="<?php echo $item['id']; ?>"
            <?php if(in_array($item['id'], explode(',', I('rim')))) { ?>checked<?php } ?>/>
            <label for="fhe<?php echo $key + 1; ?>"><?php echo $item['name']; ?></label>
            <span>(<?php echo $item['content']; ?>)</span>
        </div>
        <?php } ?>
    </div>
</div>